package com.walnut.lom_system.domain.form;

import com.walnut.lom_system.common.lang.RegularExpression;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @author chenhetao
 * @version 1.0
 * @className UserInfoForm
 * @description 接收前端传入用户数据
 * @date 2022/4/6 18:24
 */
@Data
@NoArgsConstructor
public class UserInfoForm {
    private Long id;

    private String name;

    private Long qq;

    private Integer classNo;

    private Long userSid;

    @Pattern(regexp = RegularExpression.EXP_PHONE)
    private String phone;

    @Max(1)
    @Min(0)
    private Integer gender;

    private Date birth;

    private String academy;

    private Date startTime;

    private Date endTime;

    private Integer state;

    private Integer deleted;
}
